<?php
/*
*   项目文章内页
*/
	$taxonomy = 'expert';
	$items_detail=get_the_terms($post->ID,$taxonomy);
	get_header();
	if(have_posts()):the_post();
?>
	<div class="pinpaiMenu po_r swiper-container">
		<ul class="menuScroll_lists  po_a cf swiper-wrapper">
			<li class="swiper-slide"><a href="/" >首页<em></em></a></li>
			<li class="swiper-slide"><a href="<?php echo get_permalink(15);?>" >塑美团队<em></em></a></li>
			<li class="swiper-slide active"><a>正文<em></em></a></li>
		</ul>
	</div>
  
	<div class="content doctor-single">
		<div class="title"><?php the_title();?></div>
		<?php
			if(get_field('img')):
		?>
		<section class="section-wrapper">
			<p><img src="<?php the_field('img');?>"></p>
		</section>
		<?php
			endif;
			if(get_field('honor')):
		?>
		<section class="section-wrapper">
			<h2>荣誉信息</h2>
			<p><?php the_field('title');?></p>
			<?php
				foreach (get_field('honor') as $key => $value) {
			?>
			<p><?php echo $value['content'];?></p>
			<?php
				}
			?>
		</section>
		<?php
			endif;
			if(get_field('goodat')):
		?>
		<section class="section-wrapper">
			<h2>擅长项目</h2>
			<?php
				foreach (get_field('goodat') as $key => $value) {
			?>
			<p><?php echo $value['content'];?></p>
			<?php
				}
			?>
		</section>
		<?php
			endif;
			if(get_field('about')):
		?>
		<section class="section-wrapper">
			<h2>简介</h2>
			<p><?php the_field('about');?></p>
		</section>
		<?php
			endif;
		?>
		<nav class="context">
			<li class="prev"><?php if (get_previous_post()) { previous_post_link('上一篇: %link');} else {echo "上一篇：没有了，已经是最新文章";} ?></li>
			<li class="next"><?php if (get_next_post()) { next_post_link('下一篇: %link');} else {echo "下一篇：没有了，已经是最后文章";} ?></li>
		</nav>
	</div>
<?php
	endif;
	get_footer();
?>